package com.suxin.splitter.spring;

import java.util.function.Function;

/**
 * @author Tang
 * @classname SplitService
 * @description [ 请求拆分入口 ]
 * @date 2022/11/9 16:12
 */
public interface SplitService<P,R> {

    /**
     * split
     * @param function
     * @param p
     * @param maxSize
     * @return
     */
    R split(Function<P, R> function, P p, int maxSize);

}
